//
//  LoadingView.h
//  BaseProject
//
//  Created by zhangrongbing on 2016/11/17.
//  Copyright © 2016年 lovcreate. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LoadingView.h"

typedef void(^retryBlock)();

@interface LoadingView : UIView

@property(nonatomic, strong) NSString* loadingMessage;
@property(nonatomic, strong) NSString* retryMessage;

@property(nonatomic, strong) UIImageView* loadingImageView;
@property(nonatomic, strong) UIImageView* retryImageView;
@property(nonatomic, strong) UILabel* loadingLabel;
@property(nonatomic, strong) UIButton* retryButton;

@property(nonatomic, strong) UIImage* loadingImage;
@property(nonatomic, strong) UIImage* retryImage;

@property(nonatomic, strong) retryBlock block;

@property(nonatomic) BOOL autoMoveDown;

-(instancetype) initWithView:(UIView *)view;
-(void)showWithLoadingImage:(UIImage*)loadingImage message:(NSString*)message;
-(void)showWithRetryImage:(UIImage*)image message:(NSString*) message retryBlock:(retryBlock) block;
-(void)hide;
@end
